I like to help folks with their Electron and React problems, but I often have to repeat the same things over and over again. So here is a short guide to some of the most common questions and issues people have.
Discover gists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # white point estimated from the screenshots | |
| netflix | |
| .fmtc.transfer(transs='1886', transd='linear', cont=1.13309) | |
| .fmtc.primaries(prims='709', primd='709', wd=(0.29831, 0.312059), wconv=True) | |
| .fmtc.transfer(gcor=1/2.2) | |
| .std.RemoveFrameProps('_Transfer') | |
| # white point taken to be exactly D75 (no official spec, so the exact coordinates may vary depending on intermediate rounding) | |
| netflix | |
| .fmtc.transfer(transs='1886', transd='linear', cont=1.1239) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try: | |
| import xmlrpclib | |
| except ImportError: | |
| import xmlrpc.client as xmlrpclib | |
| client = xmlrpclib.ServerProxy('https://pypi.python.org/pypi') | |
| packages = client.list_packages() | |
| total = len(packages) | |
| dashes = len([x for x in packages if '-' in x]) |
As posted on: https://timvisee.com/blog/list-export-your-subreddits/
To obtain a list of your subreddits, do the following:
- First make sure you're logged in on reddit, on a desktop browser.
- Then visit reddit.com/subreddits.
- Then put the following snippet in your browsers address bar, and press
Enter.
Make surejavascript:is included at the beginning, your browser might remove it while copy-pasting for security reasons:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Visual Studio 2019 Product Key | |
| [Please Star this gist] | |
| Follow My Account --> https://github.com/ch-kashif @ch-kashif | |
| Lets do a code together | |
| Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -oue pipefail | |
| INFO='\033[0;36m' # Cyan for general information | |
| SUCCESS='\033[0;32m' # Green for success messages | |
| WARN='\033[0;33m' # Yellow for warnings | |
| ERROR='\033[0;31m' # Red for errors | |
| NC='\033[0m' # No Color | |
| echo "This script will help you set up 1Password in a Flatpak browser." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with | |
| dau as ( | |
| -- This part of the query can be pretty much anything. | |
| -- The only requirement is that it have three columns: | |
| -- dt, user_id, inc_amt | |
| -- Where dt is a date and user_id is some unique identifier for a user. | |
| -- Each dt-user_id pair should be unique in this table. | |
| -- inc_amt represents the amount of value that this user created on dt. | |
| -- The most common case is | |
| -- inc_amt = incremental revenue from the user on dt |
We need a way to give each Discord channel its own persistent "computer" running Claude Code CLI, where:
- The computer survives across sessions (disk persists)
- It wakes up fast when a user sends a message (< 10s, ideally < 5s)
- It costs near-zero when idle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check Nahimic service status | |
| $nahimicService = Get-Service -Name "Nahimic service" -ErrorAction SilentlyContinue | |
| if ($nahimicService) { | |
| if ($nahimicService.Status -eq "Running") { | |
| Write-Host "Nahimic service is currently running." -ForegroundColor Yellow | |
| Write-Host "Advice: If you're experiencing issues related to Nahimic or high CPU/RAM usage, consider stopping and disabling the service." | |
| } | |
| else { | |
| Write-Host "Nahimic service is present but currently not running." -ForegroundColor Green |
NewerOlder